package com.waner.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.waner.reggie.dto.SetmealDto;
import com.waner.reggie.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {

    @Transactional
    public Page<SetmealDto> pageWithCategoryName(int page,int pageSize,String name);

    @Transactional
    public void saveWithDishes(SetmealDto setmealDto);

    @Transactional
    public void deleteWithDishes(List<Long> ids);

    @Transactional
    public SetmealDto getWithdishedById(Long id);

    @Transactional
    public void updateWithDishes(SetmealDto setmealDto);
}
